﻿using Basic.WxRemoteModel.WxMsg;
using Basic.WxService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.WxService.RpcEvent
{
    internal class WxPlatformEvent : IRpcApiService
    {
        private readonly IPlatformEventService _Service;

        public WxPlatformEvent (IPlatformEventService service)
        {
            this._Service = service;
        }

        public void ReceivePlatformMsg (ReceivePlatformMsg obj)
        {
            this._Service.EventMsg(obj.Msg);
        }
    }
}
